<!--
 * @Description: 
 * @Version: 2.0
 * @Autor: wsh
 * @Date: 2023-06-20 18:06:20
 * @LastEditors: upholdjx 1373577124@qq.com
 * @LastEditTime: 2023-07-29 15:57:23
-->
<!-- 老人入院管理 -->
<template>
  <BaseContainer>
    <aplid-base-crud ref="crud" class="w-100" v-bind="{ ...theConfig, ...$attrs }" :paramsObj="{code: 3022,isWithAuth:props.isWithAuth}">
    </aplid-base-crud>
  </BaseContainer>
</template>

<script setup lang="ts">
import { baseConfig } from './config'
import { editConfig } from '@/views/datacenter/comprehensiveQueries/utils/index'
type Props = {
  isWithAuth?:any,
  isComprehensiveQueries?:boolean
}
let props = withDefaults(defineProps<Props>(),{
  isWithAuth:undefined,
  isComprehensiveQueries:false
})
let theConfig :any= ref({})

if(baseConfig){
  let defaultConfig = JSON.parse(JSON.stringify(baseConfig))
  if(props.isComprehensiveQueries){
    theConfig.value = editConfig(defaultConfig)
  }else{
    theConfig.value = baseConfig
  }
  
}
</script>

<style scoped></style>